package com.lkx.service.impl;

import java.util.List;
import java.util.Map;
import com.lkx.entity.UserData;
import com.lkx.dao.UserDataMapper;
import com.lkx.service.UserDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: UserDataServiceImpl
 * @Function:  TODO
 * @Date:      2018-12-17 12:39:55
 * @Author     黄曦
 * @Version    V1.0
 */
@Service
public class UserDataServiceImpl implements UserDataService{

	@Autowired
	private UserDataMapper userDataMapper;

	@Override
	public UserData selectByPrimaryKey(Long id){
		return userDataMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<UserData> list(Map<String, Object> map){
		return userDataMapper.list(map);
	}

	@Override
    public int count(Map<String, Object> map){
		return userDataMapper.count(map);
	}

	@Override
    public int insert(UserData record){
		return userDataMapper.insert(record);
	}

	@Override
    public int updateByPrimaryKey(UserData record){
		return userDataMapper.updateByPrimaryKey(record);
	}

	@Override
    public int deleteByPrimaryKey(Long id){
		return userDataMapper.deleteByPrimaryKey(id);
	}

	@Override
    public int batchRemove(Long[] ids){
		return userDataMapper.batchRemove(ids);
	}

}

